namespace ghost {
	/**主角，编写主角角色业务*/
	export class MyPlayer extends Player implements map2D.IMyPlayer{
		protected _toX:number;
		protected _toY:number;
		protected _isNewMouse:boolean;
		protected _isNewDirect:boolean;
		protected _runType:number;
		protected _isMouseDown:boolean;		
		protected _jumpSpeed:number;
		
		
		public constructor(sceneMgr:SceneManager=null) {
			super(sceneMgr);			
			this.isMyPlayer = true;
		}				
		public setEndCoord(x:number,y:number,isMouse:boolean=false):void
		{
			let s=this;
			s._toX=x;
			s._toY=y;
			s._isNewMouse=true;
			s._isNewDirect=false;
			s._runType = 2;
			s._isMouseDown=isMouse;						
		}
		// public setInitialSts(sts:number,toX:number,toY:number,memFlag:number=0):void
		// {
		// 	let s =this;			
		// 	s.setMem(memFlag);
		// 	s._absX = toX;
		// 	s._absY = toY;
		// 	s._absZ = 0;
		// 	s.trajectoryWidths = [];			
		// 	s._jumpSpeed = s._speed;			
		// 	s._lastShootRate = 0;
		// 	s._shootRateInterval = 10;
		// 	s.upPowerLimitY = 400;			
		// 	s.lastUpPowerY = Number.MAX_VALUE;
		// 	s.xRange = 240;								
		// }
		protected setConfig(cfg:any):void
		{
			super.setConfig(cfg);
			
		}		
		
		public enterLoop(t:number,index:number):void
		{
			let s= this;			
			super.enterLoop(t,index);			
		}
		public beforeToPool():void
		{
			super.beforeToPool();			
		}
		public outPoolInit(): void
		{
			super.outPoolInit();
			let s= this;			
		}

		public setOperSts(sts:number,toDirection:number=0):void
		{
			let s = this;			
			super.setOperSts(sts, toDirection);
			// SoundManager.instance.play(Conf.sound + "click.mp3");
		}
		
		
		public objParam:any = null;
	}
}